package com.demo.task.ext

import android.content.Context

fun String.getApkVersion(context: Context): String {
    val packageInfo = context.packageManager.getPackageArchiveInfo(this, 0)
    return packageInfo?.versionName.orEmpty()
}